﻿//创建时间: 2010-10-11
//创建作者: 李 城
//功能说明: 录入可选值管理
//最后修改: 2010-10-11
using System;
using System.Collections.Generic;
using System.Text;

using TRPOP.Common;

namespace TRPOP.CMS.Model
{
    [Serializable]
    public class FormInputValueInfo
    {
        #region 私有变量
        private int m_intFormInputValueId = 0;
        private int m_intFormInputValueTypeId = 0;
        private int m_intParentId = 0;
        private string m_strName = "";
        private int m_intStatus = 0;
        private int m_intDisplayOrder = 0;
        #endregion

        #region 成员函数

        /// <summary>
        ///  Id
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int FormInputValueId
        {
            get
            {
                return m_intFormInputValueId;
            }
            set
            {
                m_intFormInputValueId = value;
            }
        }

        /// <summary>
        ///  录入可选值类型id
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int FormInputValueTypeId
        {
            get
            {
                return m_intFormInputValueTypeId;
            }
            set
            {
                m_intFormInputValueTypeId = value;
            }
        }

        /// <summary>
        ///  父id
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int ParentId
        {
            get
            {
                return m_intParentId;
            }
            set
            {
                m_intParentId = value;
            }
        }

        /// <summary>
        ///  名称
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string Name
        {
            get
            {
                return m_strName;
            }
            set
            {
                m_strName = value;
            }
        }

        /// <summary>
        ///  状态
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int Status
        {
            get
            {
                return m_intStatus;
            }
            set
            {
                m_intStatus = value;
            }
        }

        /// <summary>
        ///  排序
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int DisplayOrder
        {
            get
            {
                return m_intDisplayOrder;
            }
            set
            {
                m_intDisplayOrder = value;
            }
        }

        #endregion

    }

    [Serializable]
    public class FormInputValueInfoWithLevel : FormInputValueInfo
    {
        #region 私有变量
        private int m_intLevel = 0;
        #endregion

        #region 成员函数
        /// <summary>
        ///  级数
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int Level
        {
            get
            {
                return m_intLevel;
            }
            set
            {
                m_intLevel = value;
            }
        }
        #endregion

    }
}

